Conditions | 4 |
Paths | 5 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | var CRON = require('cron').CronJob; |
||
29 | var next = function(data){ |
||
30 | if (!data){ return; } |
||
31 | if (data.error){ SARAH.speak(tts); } |
||
32 | |||
33 | var tts = SARAH.ScriptManager.speak(data.tts); |
||
34 | if (tts){ SARAH.speak(tts); } |
||
35 | |||
36 | SARAH.RuleEngine.dispatch(plugin.name, data); |
||
37 | } |
||
38 | |||
63 | exports.init = CRONManager.init; |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.